import request from '@/utils/request'

// 查询单和流程配置列表
export function listFormProcess(query) {
  return request({
    url: '/system/formProcess/list',
    method: 'get',
    params: query
  })
}

// 查询单和流程配置详细
export function getFormProcess(id) {
  return request({
    url: '/system/formProcess/' + id,
    method: 'get'
  })
}

// 新增单和流程配置
export function addFormProcess(data) {
  return request({
    url: '/system/formProcess',
    method: 'post',
    data: data
  })
}

// 修改单和流程配置
export function updateFormProcess(data) {
  return request({
    url: '/system/formProcess',
    method: 'put',
    data: data
  })
}

// 删除单和流程配置
export function delFormProcess(id) {
  return request({
    url: '/system/formProcess/' + id,
    method: 'delete'
  })
}
